/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.vng.zing.zprofilemiddleware.servers;

import com.vng.zing.calc.thrift.ZProfileService;
import com.vng.zing.thriftserver.ThriftServers;
import com.vng.zing.zprofilemiddleware.handlers.ZProfileServiceHandle;

/**
 *
 * @author namnq
 */
public class TServers {

    public boolean setupAndStart() {
        ThriftServers servers = new ThriftServers("zprofilemiddleware");
        ZProfileService.Processor processor = new ZProfileService.Processor(new ZProfileServiceHandle());
        servers.setup(processor);
        return servers.start();
    }
}
